﻿using System;
using System.Windows.Controls;
using System.Windows.Media.Animation;

namespace eLearning.View.Tile
{
    public partial class TileDosen : UserControl
    {
        public TileDosen()
        {
            InitializeComponent();
            Storyboard anim = (Storyboard)FindName("tileDosenAnim1_Part1");
            anim.Begin();
        }

        private void tileDosenAnim1_Part1_Completed_1(object sender, EventArgs e)
        {
            Storyboard anim = (Storyboard)FindName("tileDosenAnim1_Part2");
            anim.Begin();
        }

        private void tileDosenAnim1_Part2_Completed_1(object sender, EventArgs e)
        {
            Storyboard anim = (Storyboard)FindName("tileDosenAnim2_Part1");
            anim.Begin();
        }
        private void tileDosenAnim2_Part1_Completed_1(object sender, EventArgs e)
        {
            Storyboard anim = (Storyboard)FindName("tileDosenAnim2_Part2");
            anim.Begin();
        }

        private void tileDosenAnim2_Part2_Completed_1(object sender, EventArgs e)
        {
            Storyboard anim = (Storyboard)FindName("tileDosenAnim1_Part1");
            anim.Begin();
        }
    }
}
